﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
    namespace="KojackGames.Blackjack.Domain.DomainViews.InPlayView"
        assembly="KojackGames.Blackjack.Domain">

  <class name="BlackJackTableView" table="Table_and_Player" mutable="false" lazy="false" >

    <id name="id" type="Guid">      
    </id>

    <property column="player_token" name="player_token"/>
    <property column="dollars_in_pot" name="dollars_in_pot"/>
    <property column="finished" name="finished"/>
    <property name="can_accept_bet" column="can_accept_bet"/>
    <property name="can_deal" column="can_deal"/>
              
      <bag name="all_hands" lazy="false" >
        <key column="blackjack_table_id"/>
        <one-to-many class="HandView"></one-to-many>
      </bag>
    

  </class>
                         
</hibernate-mapping>